<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content">
  <div class="top">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center">
      <h1><?php echo $heading_title; ?></h1>
    </div>
  </div>
  <div class="middle">
    <div style="width: 100%; margin-bottom: 30px;">
        <form action="./index.php?route=vin/decoder"  method="post" enctype="multipart/form-data" id="product">
            VIN: <input name="vin" >
            <button type="submit">Send</button>
        </form>
        <table width="100%" border="0">
            <tr>
                <td width="30%" align="center"><b>Параметр</b></td>
                <td width="70%" align="center"><b>Значение</b></td>
            </tr>
        <?php
            if (isset($vin_data)) {
        ?>
            <tr><td>Страна</td><td><?php echo $vin_data['WMI']['geozone']; ?></td></tr>
            <tr><td>Завод изготовитель</td><td><?php echo $vin_data['WMI']['manufacturer']; ?></td></tr>
            <tr><td>Модель</td><td><?php echo $vin_data['VDS']['model']; ?></td></tr>
            <tr><td>Тип привода и трансмиссии</td><td><?php echo $vin_data['VDS']['transmission']; ?></td></tr>
            <tr><td>Тип кузова</td><td><?php echo $vin_data['VDS']['body_style']; ?></td></tr>
            <tr><td>Двигатель</td><td><?php echo $vin_data['VDS']['engine']; ?></td></tr>
            <tr><td>Год изготовления</td><td><?php echo $vin_data['VDS']['year']; ?></td></tr>
        <?php
           };
        ?>
       </table>
    </div>
    </div>
  <div class="bottom">
    <div class="left"></div>
    <div class="right"></div>
    <div class="center"></div>
  </div>
</div>
<?php echo $footer; ?> 